package cz.movie.subRenamer.model;

import java.util.regex.Pattern;

public class SearchingRule {

	private Pattern pattern;
	private boolean fixed;
	private boolean reverseOrder=false;
	
	private int positionSeasonStart;
	private int positionSeasonEnd;
	private int positionEpisodeStart;
	private int positionEpisodeEnd;
	

	public Pattern getPattern() {
		return pattern;
	}
	public void createPattern(String pattern) {
		this.pattern = Pattern.compile(pattern);
	}
	
	
	public boolean isReverseOrder() {
		return reverseOrder;
	}
	public void setReverseOrder(boolean reverseOrder) {
		this.reverseOrder = reverseOrder;
	}
	public boolean isFixed() {
		return fixed;
	}
	public void setFixed(boolean fixed) {
		this.fixed = fixed;
	}
	public int getPositionSeasonStart() {
		return positionSeasonStart;
	}
	public void setPositionSeasonStart(int positionSeasonStart) {
		this.positionSeasonStart = positionSeasonStart;
	}
	public int getPositionSeasonEnd() {
		return positionSeasonEnd;
	}
	public void setPositionSeasonEnd(int positionSeasonEnd) {
		this.positionSeasonEnd = positionSeasonEnd;
	}
	public int getPositionEpisodeStart() {
		return positionEpisodeStart;
	}
	public void setPositionEpisodeStart(int positionEpisodeStart) {
		this.positionEpisodeStart = positionEpisodeStart;
	}
	public int getPositionEpisodeEnd() {
		return positionEpisodeEnd;
	}
	public void setPositionEpisodeEnd(int positionEpisodeEnd) {
		this.positionEpisodeEnd = positionEpisodeEnd;
	}
	@Override
	public String toString() {
		return "SearchingRule [pattern=" + pattern + ", fixed=" + fixed
				+ ", positionSeasonStart=" + positionSeasonStart
				+ ", positionSeasonEnd=" + positionSeasonEnd
				+ ", positionEpisodeStart=" + positionEpisodeStart
				+ ", positionEpisodeEnd=" + positionEpisodeEnd + "]";
	}

	
}
